﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<SacNetUG.Models.Sponsor>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit Sponsor
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit Sponsor</h2>

    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm())
       {%>
    <%= Html.HiddenFor(model => model.SponsorId)%>
    <table>
        <tr>
            <td>
                <%= Html.LabelFor(model => model.Name)%>
            </td>
            <td>
                <%= Html.EditorFor(model => model.Name)%>
                <%= Html.ValidationMessageFor(model => model.Name)%>
            </td>
        </tr>
        <tr>
            <td>
                <%= Html.LabelFor(model => model.Url)%>
            </td>
            <td>
                <%= Html.EditorFor(model => model.Url)%>
                <%= Html.ValidationMessageFor(model => model.Url)%>
            </td>
        </tr>
        <tr>
            <td>
                <%= Html.LabelFor(model => model.LogoUrl)%>
            </td>
            <td>
                <%= Html.EditorFor(model => model.LogoUrl)%>
                <%= Html.ValidationMessageFor(model => model.LogoUrl)%>
            </td>
        </tr>
        <tr>
            <td>
                <%= Html.LabelFor(model => model.BannerUrl)%>
            </td>
            <td>
                <%= Html.EditorFor(model => model.BannerUrl)%>
                <%= Html.ValidationMessageFor(model => model.BannerUrl)%>
            </td>
        </tr>
        <tr>
            <td>
                <%= Html.LabelFor(model => model.SponsorCategory) %>
            </td>
            <td>
                <%= Html.NullableDropDownListFor(model => model.SponsorCategoryId, "SponsorCategories", "SponsorCategoryId", "Name", false)%>
                <%= Html.ValidationMessageFor(model => model.SponsorCategoryId)%>
            </td>
        </tr>
        <%= Html.NumericEditorFor(model => model.SortOrder) %>
        <tr>
            <td>
            </td>
            <td>
                <input type="submit" value="Submit" />
            </td>
        </tr>
    </table>
    <% } %>
    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>

